
package cn.weiyang.testArray;

import java.util.Arrays;

public class TestSort {
	/**
	 * @param args
	 */
	public static void main(String[] args){
		int[] a={23,1,3,45,32,90,54};
		int[] b=new int[9];
		Arrays.sort(a);
		for(int i:a){
			System.out.println(i);
		}
		System.out.println(Arrays.toString(b));
		System.arraycopy(a, 0, b, 2, a.length);
		System.out.println(Arrays.toString(b));
		System.out.println(Arrays.toString(a));
		System.out.println(Arrays.binarySearch(a, 90));
	}

}
